/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module init.h - Header file for application initialization functions |
   @end

$Log: /SoftPay/SPK2SIM/Source/Include/init.h $
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
#ifndef INIT_H
#define INIT_H

#include <transact.h>
#include <print.h>

extern int hCardReader;        /* Card reader handle  */
extern int hICC1Reader;        /* Chip Card reader handle  */
extern int hICC2Reader;        /* Chip Card reader handle  */

extern int remoteTaskID;
extern int remotePipe;
extern int spipe;

#define HDR0   "HDR00"
#define HDR1   "HDR01"
#define HDR2   "HDR02"
#define HDR3   "HDR03"


int inApplColdInit (void);
int inValidateTableEntry(void);
int inSelectTemplateFile(PRINTER_OBJECT *obPrinter);
long lnApplInit (void);
int inInitTerminalBeep (TRANSACTION_OBJECT *pobTran);
int inInitTables (TRANSACTION_OBJECT *pobTran);
int inAutoSettle (TRANSACTION_OBJECT *pobTran);
int inMemoryCheck (TRANSACTION_OBJECT *pobTran);
void vdInitializeSyncDialTask(void);
int INIT_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);

extern int inPPadPresent;
extern int inInitializeFunctionRecord(void);
extern void (*pvdCustomInitFuncs[])(void);

extern int (*pinModuleInitFuncs[])(void);


#endif

